<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script>
        var a = {
            name: "sb",
            age: 18,
            sex: 1
        }
        var b = {
            name: "ls"
        }
        function min(a,b) {              //混合继承（min）
            for (var k in a) {
                b[k] = a[k];               //把a中的属性一个个的继承给b
            }
        }
        min(a,b); //调用min函数
        console.log(b);
    </script>
</head>
<body>

</body>
</html>